<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    Zuxian.prototype.addr = '成都'
    function Zuxian(){

    }
    var zuxian = new Zuxian()

    Father.prototype = zuxian
    function Father(){
      this.firstName = '刘'
    }
    var father = new Father()

    Son.prototype  = father
    function Son(){

    }
    var son = new Son()


    function Weel(wSize,r){
      this.wSize = wSize;
      this.r = r
    }
    function Module(width,height){
      this.width = width;
      this.height = height
    }
    function Car(name,color,wSize,r,width,height){
      // Module.call(this,width,height)
      // Weel.call(this,wSize,r)
      Module.apply(this,[width,height])
      Weel.apply(this,[wSize,r])
      this.name = name;
      this.color = color
    }
    var car = new Car('BMW','red',400,20,300,500)
  </script>
</body>
</html>